﻿

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Suk.Common
{
    public class ConfigurationManager
    {
        public static T GetAppSettings<T>() where T : class, new()
        {
            string json = System.IO.File.ReadAllText(Directory.GetCurrentDirectory() + @"\appsettings.json"); ;
            return JsonHelper.DeserializeObject<T>(json);
        }

    }
}
